﻿@model CloudFranceTriple.WebRole.Models.RegisterExternalLoginModel
@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterTitle;
}
<div class="content-padding">
    <h1>@ViewBag.Title.</h1>
    <br />
    <h2>@CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterTitle3 @ViewBag.ProviderDisplayName.</h2>

    @using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { area = "", ReturnUrl = ViewBag.ReturnUrl }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>@CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterButton</legend>
            <p>
                @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterSuccess <strong>@ViewBag.ProviderDisplayName</strong>.
            <br />
                @CloudFranceTriple.WebRole.Properties.Resources.AssociatedUserName
                @*                You've successfully authenticated with <strong>ViewBag.ProviderDisplayName</strong>.
            Please enter a user name for this site below and click the Confirm button to finish
            logging in.*@
            </p>
            <ol>
                <li class="name">
                    @CloudFranceTriple.WebRole.Properties.Resources.LoginUserName
                    @Html.TextBoxFor(m => m.UserName)
                    @Html.ValidationMessageFor(m => m.UserName)
                </li>
            </ol>
            @Html.HiddenFor(m => m.ExternalLoginData)
            <input type="submit" value="@CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterButton" />
        </fieldset>
    }

    @section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    }
</div>
